package thread;

public class CurrentThreadDemo {
    public static void main(String[] args){
        Thread thread = Thread.currentThread();
        System.out.println("主线程:"+thread);
        dosome();
    }
    public static void dosome(){
        Thread thread = Thread.currentThread();
        System.out.println("调用dosome线程是:"+thread);

    }
}
